home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
IDLIncludes
/
AppleTalk.idl
< prev
next >
Wrap
Text File
|
1996-05-01
|
8KB
|
231 lines
/*
File: AppleTalk.idl
Contains: AppleTalk Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
*/
#ifndef __APPLETALK_IDL__
#define __APPLETALK_IDL__
#include <somobj.idl>
#include <somcls.idl>
#ifndef __TYPES_IDL__
#include <Types.idl>
#endif
#ifndef __OSUTILS_IDL__
#include <OSUtils.idl>
#endif
#ifdef __SOMIDL__
#if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
/*
Real definition of EntityName is 3 PACKED strings of any length (32 is just an example). No
offests for Asm since each String address must be calculated by adding length byte to last string ptr.
In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte unless they are
only a byte long. So this will generate correct looking interfaces for Pascal and C, but they will not
be the same, which is OK since they are not used.
*/
typedef SOMLargeStruct EntityName; /* Derived from a struct of 102 bytes in size */
typedef OpaquePtr EntityPtr; /* Substituted OpaquePtr for ``EntityName*'' */
typedef SOMFourByteStruct AddrBlock; /* Derived from a struct of 4 bytes in size */
#endif
#if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
typedef SInt8 ABCallType;
typedef UInt8 ABProtoType;
typedef Byte ABByte;
typedef SOMFourByteStruct LAPAdrBlock; /* Derived from a struct of 4 bytes in size */
typedef OpaquePtr ATQEntryPtr; /* Substituted OpaquePtr for ``ATQEntry*'' */
typedef OpaquePtr ATalkTransitionEventProcPtr;
typedef OpaquePtr ATalkTransitionEventUPP;
typedef ATalkTransitionEventUPP ATalkTransitionEvent;
typedef SOMLargeStruct ATQEntry; /* Derived from a struct of 10 bytes in size */
typedef SOMTwoByteStruct RetransType; /* Derived from a struct of 2 bytes in size */
typedef SOMLargeStruct BDSElement; /* Derived from a struct of 12 bytes in size */
typedef OpaquePtr BDSType; /* Substituted OpaquePtr for array of BDSElement of size 8 */
typedef OpaquePtr BDSPtr; /* Substituted OpaquePtr for ``BDSElement*'' */
typedef char BitMapType;
typedef SOMLargeStruct ATLAPRec; /* Derived from a struct of 20 bytes in size */
typedef OpaquePtr ATLAPRecPtr; /* Substituted OpaquePtr for ``ATLAPRec*'' */
typedef OpaquePtr ATLAPRecHandle; /* Substituted OpaquePtr for ``ATLAPRecPtr*'' */
typedef SOMLargeStruct ATDDPRec; /* Derived from a struct of 26 bytes in size */
typedef OpaquePtr ATDDPRecPtr; /* Substituted OpaquePtr for ``ATDDPRec*'' */
typedef OpaquePtr ATDDPRecHandle; /* Substituted OpaquePtr for ``ATDDPRecPtr*'' */
typedef SOMLargeStruct ATNBPRec; /* Derived from a struct of 26 bytes in size */
typedef OpaquePtr ATNBPRecPtr; /* Substituted OpaquePtr for ``ATNBPRec*'' */
typedef OpaquePtr ATNBPRecHandle; /* Substituted OpaquePtr for ``ATNBPRecPtr*'' */
typedef SOMLargeStruct ATATPRec; /* Derived from a struct of 56 bytes in size */
typedef OpaquePtr ATATPRecPtr; /* Substituted OpaquePtr for ``ATATPRec*'' */
typedef OpaquePtr ATATPRecHandle; /* Substituted OpaquePtr for ``ATATPRecPtr*'' */
typedef SOMLargeStruct AFPCommandBlock; /* Derived from a struct of 14 bytes in size */
typedef OpaquePtr MPPPBPtr; /* Substituted OpaquePtr for ``MPPParamBlock*'' */
typedef OpaquePtr ATPPBPtr; /* Substituted OpaquePtr for ``ATPParamBlock*'' */
typedef OpaquePtr XPPParmBlkPtr; /* Substituted OpaquePtr for ``XPPParamBlock*'' */
typedef OpaquePtr MPPCompletionProcPtr;
typedef OpaquePtr MPPCompletionUPP;
typedef OpaquePtr ATPCompletionProcPtr;
typedef OpaquePtr ATPCompletionUPP;
typedef OpaquePtr XPPCompletionProcPtr;
typedef OpaquePtr XPPCompletionUPP;
typedef OpaquePtr AttnRoutineProcPtr;
typedef OpaquePtr AttnRoutineUPP;
typedef SOMLargeStruct WDSElement; /* Derived from a struct of 6 bytes in size */
typedef SOMLargeStruct NTElement; /* Derived from a struct of 104 bytes in size */
typedef SOMLargeStruct NamesTableEntry; /* Derived from a struct of 108 bytes in size */
typedef OpaquePtr MPPProtocolHandlerProcPtr;
typedef OpaquePtr MPPProtocolHandlerUPP;
typedef OpaquePtr DDPSocketListenerProcPtr;
typedef OpaquePtr DDPSocketListenerUPP;
/*
MPPProtocolHandlerProcs and DDPSocketListenerProcs cannot be written
in or called from a high-level language without the help of mixed mode
or assembly glue because they use the following parameter-passing conventions:
typedef Boolean (*MPPProtocolHandlerProcPtr)(Ptr SCCAddr1, Ptr SCCAddr2,
Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr,
short numBytesLeftToReadInPacket);
In:
=> SCCAddr1 A0.L
=> SCCAddr2 A1.L
=> MPPLocalVars A2.L
=> nextFreeByteInRHA A3.L
=> ReadPacketAndReadRestPtr A4.L
=> numBytesLeftToReadInPacket D1.W
Out:
<= Boolean Z bit of CCR
typedef Boolean (*DDPSocketListenerProcPtr)(Ptr SCCAddr1, Ptr SCCAddr2,
Ptr MPPLocalVars, Ptr nextFreeByteInRHA, Ptr ReadPacketAndReadRestPtr,
UInt8 packetDestinationNumber, short numBytesLeftToReadInPacket);
In:
=> SCCAddr1 A0.L
=> SCCAddr2 A1.L
=> MPPLocalVars A2.L
=> nextFreeByteInRHA A3.L
=> ReadPacketAndReadRestPtr A4.L
=> packetDestinationNumber D0.B
=> numBytesLeftToReadInPacket D1.W
Out:
<= Boolean Z bit of CCR
*/
typedef SOMLargeStruct MPPparms; /* Derived from a struct of 28 bytes in size */
typedef SOMLargeStruct LAPparms; /* Derived from a struct of 38 bytes in size */
typedef SOMLargeStruct DDPparms; /* Derived from a struct of 38 bytes in size */
typedef SOMLargeStruct NBPPtrs; /* Derived from a struct of 8 bytes in size */
typedef SOMLargeStruct LookupConfirmParams; /* Derived from a struct of 17 bytes in size */
typedef SOMLargeStruct NBPparms; /* Derived from a struct of 44 bytes in size */
typedef SOMLargeStruct SetSelfparms; /* Derived from a struct of 30 bytes in size */
typedef SOMLargeStruct NBPKillparms; /* Derived from a struct of 32 bytes in size */
typedef SOMLargeStruct GetAppleTalkInfoParm; /* Derived from a struct of 78 bytes in size */
typedef SOMLargeStruct ATalkClosePrepParm; /* Derived from a struct of 32 bytes in size */
typedef SOMLargeStruct MPPParamBlock; /* Derived from a struct of 312 bytes in size */
typedef SOMLargeStruct XPPPrmBlk; /* Derived from a struct of 346 bytes in size */
typedef SOMLargeStruct ASPGetparmsBlk; /* Derived from a struct of 34 bytes in size */
typedef SOMLargeStruct ASPAbortPrm; /* Derived from a struct of 32 bytes in size */
typedef SOMLargeStruct ASPOpenPrm; /* Derived from a struct of 44 bytes in size */
typedef OpaquePtr ASPOpenPrmPtr; /* Substituted OpaquePtr for ``ASPOpenPrm*'' */
typedef SOMLargeStruct AFPLoginPrm; /* Derived from a struct of 200 bytes in size */
typedef SOMLargeStruct XCallParam; /* Derived from a struct of 112 bytes in size */
typedef SOMLargeStruct XPPParamBlock; /* Derived from a struct of 768 bytes in size */
typedef SOMLargeStruct ATPparms; /* Derived from a struct of 44 bytes in size */
typedef SOMLargeStruct SendReqparms; /* Derived from a struct of 52 bytes in size */
typedef SOMLargeStruct ATPmisc1; /* Derived from a struct of 47 bytes in size */
typedef SOMLargeStruct ATPmisc2; /* Derived from a struct of 48 bytes in size */
typedef SOMLargeStruct Killparms; /* Derived from a struct of 48 bytes in size */
typedef SOMLargeStruct ATPParamBlock; /* Derived from a struct of 238 bytes in size */
/*
The following routines are obsolete and will not be supported on
PowerPC. Equivalent functionality is provided by the routines
above.
*/
#if OLDROUTINENAMES && !GENERATINGCFM
#endif
#endif
#endif /* __SOMIDL__ */
#endif /* __APPLETALK_IDL__ */